package com.zhouyu.service;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.stereotype.Component;

/**
 * copyright (C), 2023,北京同创永益科技发展有限公司
 *
 * @author xiaodi
 * @version 1.0.0
 * <author>                     <time>                 <version>                   <description>
 * xiaodi               2023/12/1 16:23:31           1.0.0
 * @program spring
 * @description
 * @create 2023/12/1 16:23:31
 */
@Component
public class MySFPP implements BeanFactoryPostProcessor {
	/**
	 * Modify the application context's internal bean factory after its standard
	 * initialization. All bean definitions will have been loaded, but no beans
	 * will have been instantiated yet. This allows for overriding or adding
	 * properties even to eager-initializing beans.
	 *
	 * @param beanFactory the bean factory used by the application context
	 * @throws BeansException in case of errors
	 */
	@Override
	public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
		System.out.println("自己实现的BeanFactoryPostProcessor");
	}
}
